package com.lins.common;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * 公共参数-Yml
 * @Author linshuo
 * @Date 2023/7/27 15:34
 */
@Component
@Configuration
//@PropertySource(value = {"classpath:/application.yml"}, encoding = "gbk")
@ConfigurationProperties(prefix = "params")
@Data
public class Params {
//--------------------------------------------------------区划-------------------------------
    private Map<String,String> beijing;
    private Map<String,String> jiangsu;
//--------------------------------------------------------Ali-------------------------------
    // Endpoint以华东1（杭州）为例，其它Region请按实际情况填写。
    private String endpoint = "http://oss-cn-beijing.aliyuncs.com";
    // 阿里云账号AccessKey拥有所有API的访问权限，风险很高。强烈建议您创建并使用RAM用户进行API访问或日常运维，请登录RAM控制台创建RAM用户。
    private String accessKeyId = "LTAI5tBzKTi5vfes3rsHYajv";
    private String accessKeySecret = "NOcMa4R7f7X7T5NNeGaiRhVT61iCQg";
    // 填写Bucket名称，例如examplebucket
    private String bucketName = "offcn-ls";


}
